import { NativeModules } from "react-native";

const module = NativeModules.CreateThumbnail;
const CreateThumbnail = {
    createThumbnail:(config)=>{
        return new Promise(function(resolve, reject){
            // ... some code
            module.create(config).then(result=>{
                resolve(result);
            }).catch(error=>reject(error));
        })
    }
};

export default CreateThumbnail;
